// source --> https://cdn.adfinity.pro/code/beelinex.ru/adfinity.js (()=>{window.adfinityData={"staticUrl":"https:\/\/cdn.adfinity.pro\/code","domains":{"main":"beelinex.ru","mirror":[".*\\.beelinex\\.ru"]},"url_exception":[],"siteConfig":{"blocks":[{"blockId":7852,"blockCaption":"M_Overlay_300x250_v","creativeType":"adfox","creativeParms":{"containerId":"adfox_170781673027081104","type":"adaptive","ownerId":389280,"params":{"pp":"bsgx","ps":"hgji","p2":"ivqr","ld":"https:\/\/beelinex.ru","dl":"https:\/\/beelinex.ru"},"bannerStates":["phone"],"adaptiveOptions":{"tabletWidth":"1280","phoneWidth":"420"},"adUnit":{"bids":[{"bidder":"buzzoola","params":{"placementId":"1261952","sendTargetRef":true}},{"bidder":"myTarget","params":{"placementId":"1504921"}},{"bidder":"otm","params":{"placementId":"56606"}},{"bidder":"sape","params":{"placementId":"882140"}},{"bidder":"solta","params":{"placementId":"67-Gh0Pe"}},{"bidder":"betweenDigital","params":{"placementId":"4738782","sendTargetRef":true}}],"sizes":[[300,250],[250,250],[200,200],[300,100],[300,50],[320,100],[320,50]]}},"formatType":"overlay","formatParams":{"height":"250","unitsMeasurement":"px","position":"right","positionPanelClose":"default","startTime":"3","startScrollTop":"200","canCloseAfter":"5","overloadAfterLoad":"30","blur":"8"},"active":2,"urlsAllowed":"","urlsForbidden":"","mediaFormatType":"M","styles":""},{"blockId":7854,"blockCaption":"M_Fullscreen_v","creativeType":"adfox","creativeParms":{"containerId":"adfox_17078177047626958","type":"adaptive","ownerId":389280,"params":{"pp":"cjch","ps":"hgji","p2":"ivqt","ld":"https:\/\/beelinex.ru","dl":"https:\/\/beelinex.ru"},"bannerStates":["tablet","phone"],"adaptiveOptions":{"tabletWidth":"1280","phoneWidth":"768"},"adUnit":{"bids":[{"bidder":"betweenDigital","params":{"placementId":"4738784","sendTargetRef":true}},{"bidder":"buzzoola","params":{"placementId":"1261954","sendTargetRef":true}},{"bidder":"otm","params":{"placementId":"56608"}},{"bidder":"sape","params":{"placementId":"882143"}},{"bidder":"solta","params":{"placementId":"67-Wt5Hv"}}],"sizes":[[300,600],[300,250],[240,400],[336,280],[300,300],[160,600],[250,250]]}},"formatType":"fullscreen","formatParams":{"blur":"8","canCloseAfter":"3","height":"600","overloadAfterLoad":"30"},"active":2,"urlsAllowed":"","urlsForbidden":"","mediaFormatType":"M","styles":""}]},"creatives":{"adfox":{"syncPixels":[{"bidder":"sape","pixels":["https:\/\/ssp-rtb.sape.ru\/rmatch\/?r=https%3A%2F%2Facint.net%2Fmatch%3Fdp%3D14%26euid%3D%24%7BUSER_ID%7D"]},{"bidder":"betweenDigital","pixels":["https:\/\/ads.betweendigital.com\/sspmatch?p=42565&r=${CACHEBUSTER1}"]}],"userTimeout":500,"adfoxBiddersMap":{"adriver":1698024,"betweenDigital":1698017,"bidvol":1698023,"buzzoola":1698020,"otm":1698022,"hybrid":1698018,"myTarget":1698016,"sape":1698025,"segmento":1964328,"Gnezdo":2153079,"Kadam":2223821,"clickscloud":2428185,"astralab":2292910,"videonow":2348147,"solta":2724138,"mediasniper":2880549}}}}})();(()=>{"use strict";var __webpack_modules__={139:(t,e,r)=>{var n=r(705),o=r(906),i=function(){return(1e10*Math.random()).toFixed(0)},a=function(t){var e=t.getBoundingClientRect(),r=document.body,n=document.documentElement,o=window.scrollY||n.scrollTop||r.scrollTop,i=window.scrollX||n.scrollLeft||r.scrollLeft,a=n.clientTop||r.clientTop||0,c=n.clientLeft||r.clientLeft||0;return{top:e.top+o-a,left:e.left+i-c}},c=function(t){var e=t.getBoundingClientRect();return{top:e.top+window.scrollY,left:e.left+window.scrollX}},u=function(t){var e=t.getBoundingClientRect();return{top:e.top,left:e.left}},s=function(t){return JSON.parse(JSON.stringify(t))},l=r(473),f=r(307),p=r(958);function d(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(window.YaHeaderBiddingSettings.adUnits=c.adUnits);var n=null!==(r=window.srcHB)&&void 0!==r?r:"//yandex.ru/ads/system/header-bidding.js";c.hideAdfoxHeaderBidding||document.querySelector('script[src="'.concat(n,'"]'))||f.M.addTag("script",{src:n,async:!0}),c.bidders.indexOf("betweenDigital")>-1&&(f.M.addTag("link",{href:"//ads.betweendigital.com",crossorigin:!0}),p.u.addEventListener(this,"addBetweenScript",document,"DOMContentLoaded",(function(){f.M.addTag("script",{src:"//ads.betweendigital.com/sspmatch-js?p=42565&randsalt="+i(),async:!0},document.body,"beforeend")})))}window.Ya||(window.Ya={}),window.yaContextCb=window.yaContextCb||[],window.Ya.adfoxCode||(window.Ya.adfoxCode={}),window.Ya.adfoxCode.hbCallbacks||(window.Ya.adfoxCode.hbCallbacks=[]);var o=null!==(e=window.srcCONT)&&void 0!==e?e:"//yandex.ru/ads/system/context.js";c.hideAdfoxContext||document.querySelector('script[src*="'.concat(o,'"]'))||f.M.addTag("script",{src:o,async:!0})}}}],(r=[{key:"validParams",value:function(t,e,r){if(!b(O(c.prototype),"validParams",this).call(this,t,e,r))return!1;var o=!1;return"object"!=h(r)?o="Не задан конфиг для adfox":void 0===r.ownerId?o="Не задан ownerId":void 0===r.params?o="Не заданы параметры блока":void 0===r.type?o="Не задан тип блока type":-1===["async","adaptive"].indexOf(r.type)?o="Не верный тип блока type":"adaptive"===r.type&&("object"!=h(r.bannerStates)?o="Для адаптивного блока не задан обязательный параметр bannerStates":"object"!=h(r.adaptiveOptions)&&(o="Для адаптивного блока не задан обязательный параметр adaptiveOptions")),!1===o||(n.T.err(o,t),!1)}},{key:"init",value:function(t,e){this.containerId=e.containerId,this.initBannerOptions(e),this.initHB(),this.initStyles()}},{key:"initBannerOptions",value:function(t){var e=this;this.bannerOptions={ownerId:t.ownerId,sequentialLoading:!0,containerId:this.containerId,params:t.params,onLoad:function(t){n.T.log("Блок ".concat(e.containerId," загружен"),e.blockId),e.isLoaded=!0,e.loadData=t,l.G.publish("adfoxCreativeLoad",e.blockId,{data:t})},onRender:function(t){if(e.isLoaded){delete e.isLoaded,n.T.log("Блок ".concat(e.containerId," отрисован"),e.blockId),e.loadData.winBidder=e.getWinBidder(e.loadData),n.T.log("Загружен биддер - ".concat(e.loadData.winBidder),e.blockId);var r={dataRender:t,loadData:e.loadData,mustShowWrap:e.showWrapForBundle()};l.G.publish("creativeRender",e.blockId,r)}},onError:function(t){n.T.err("Ошибка при загрузке блока ".concat(e.containerId,": "),e.blockId),n.T.err(t,e.blockId),"adfoxBackend"==t.type&&n.T.err("Ошибка настройки блока в Adfox",e.blockId),l.G.publish("adfoxCreativeError",e.blockId,{error:t})},onStub:function(){n.T.info("Отказ в загрузке блока ".concat(e.containerId),e.blockId),l.G.publish("adfoxCreativeStub",e.blockId)},onClose:function(){n.T.info("Закрытие блока ".concat(e.containerId),e.blockId),l.G.publish("creativeClose",e.blockId)}},"object"==h(t.lazyLoad)&&(this.bannerOptions.lazyLoad=t.lazyLoad)}},{key:"showWrapForBundle",value:function(){var t;return-1==["banner.direct","banner.transfer"].indexOf(null===(t=this.loadData)||void 0===t?void 0:t.bundleName)}},{key:"getWinBidder",value:function(t){var e,r=!1;if("bid"==t.bundleName){if(null!==(e=t.bundleParams)&&void 0!==e&&e.bids){var o,i=d(t.bundleParams.bids);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(Number(a.campaign_id)==Number(t.bundleParams.campaignId)){r=a.bidderName;break}}}catch(t){i.e(t)}finally{i.f()}}}else"banner.direct"==t.bundleName?r="РСЯ":"banner.transfer"==t.bundleName?r="mytarget":n.T.err(t,this.blockId);return r}},{key:"initHB",value:function(){var t,e,r,n,o,i,a;if(c.offAdfoxHeaderBidding)return!1;if(!this.checkMediaWidth())return!1;if("object"!=h(null===(t=this.params.adUnit)||void 0===t?void 0:t.bids)||0==this.params.adUnit.bids.length)return!1;this.adUnit=s(this.params.adUnit),this.adUnit.code=this.containerId;var u,l=d(this.adUnit.bids);try{for(l.s();!(u=l.n()).done;){var f=u.value;-1==c.bidders.indexOf(f.bidder)&&c.bidders.push(f.bidder)}}catch(t){l.e(t)}finally{l.f()}if(null!==(e=window.Ya)&&void 0!==e&&null!==(r=e.headerBidding)&&void 0!==r&&null!==(n=r.managerForAdfox)&&void 0!==n&&null!==(o=n.settings)&&void 0!==o&&o.adUnits){var p,y=d(window.Ya.headerBidding.managerForAdfox.settings.adUnits);try{for(y.s();!(p=y.n()).done;)if(p.value.code===this.adUnit.code)return!1}catch(t){y.e(t)}finally{y.f()}}void 0===(null===(i=window.Ya)||void 0===i||null===(a=i.headerBidding)||void 0===a?void 0:a.pr)?c.adUnits.push(this.adUnit):window.Ya.headerBidding.pushAdUnits([this.adUnit])}},{key:"checkMediaWidth",value:function(){var t=window.innerWidth;if("adaptive"==this.params.type){var e,r,n,o,i,a=null!==(e=parseInt(null===(r=this.params.adaptiveOptions)||void 0===r?void 0:r.tabletWidth))&&void 0!==e?e:830,c=null!==(n=parseInt(null===(o=this.params.adaptiveOptions)||void 0===o?void 0:o.phoneWidth))&&void 0!==n?n:480;if(t>a){if(-1==(null===(i=this.params.bannerStates)||void 0===i?void 0:i.indexOf("desktop")))return!1}else if(t>c){var u;if(-1==(null===(u=this.params.bannerStates)||void 0===u?void 0:u.indexOf("tablet")))return!1}else{var s;if(-1==(null===(s=this.params.bannerStates)||void 0===s?void 0:s.indexOf("phone")))return!1}}return!0}},{key:"initStyles",value:function(){if("adaptive"==this.params.type){var t,e,r,n,o=s(this.params.bannerStates);o.sort();var i=null!==(t=parseInt(null===(e=this.params.adaptiveOptions)||void 0===e?void 0:e.tabletWidth))&&void 0!==t?t:830,a=null!==(r=parseInt(null===(n=this.params.adaptiveOptions)||void 0===n?void 0:n.phoneWidth))&&void 0!==r?r:480,c=i+1,u=a+1,l={"desktop,phone,tablet":"","desktop,tablet":"(max-width: ".concat(a,"px)"),desktop:"(max-width: ".concat(i,"px)"),"phone,tablet":"(min-width: ".concat(c,"px)"),phone:"(min-width: ".concat(u,"px)"),"desktop,phone":"(max-width: ".concat(i,"px) and (min-width: ").concat(u,"px)"),tablet:"(min-width: ".concat(c,"px),(max-width: ").concat(a,"px)")},p="#wrap_".concat(this.blockId),d=l[o.join(",")],y=d?"@media ".concat(d,"{").concat(p,"{display:none}}"):"";f.M.addStyle("adfox_"+this.blockId,y)}}},{key:"canRun",value:function(){return b(O(c.prototype),"canRun",this).call(this)&&c.yaContextCbInit&&this.checkMediaWidth()}},{key:"run",value:function(t){b(O(c.prototype),"run",this).call(this),t.container.id=this.containerId,this.getLanchCode()()}},{key:"getLanchCode",value:function(){var t,e=this;return"async"===this.params.type?t=function(){window.yaContextCb.push((function(){n.T.log("async_before",e.blockId),Ya.adfoxCode.create(e.bannerOptions),n.T.log("async_after",e.blockId)}))}:"adaptive"===this.params.type&&(t=function(){window.yaContextCb.push((function(){n.T.log("adaptive_before",e.blockId),Ya.adfoxCode.createAdaptive(e.bannerOptions,e.params.bannerStates,e.params.adaptiveOptions),n.T.log("adaptive_after",e.blockId)}))}),t}},{key:"creativeReload",value:function(){Ya.adfoxCode.reload(this.containerId,{onlyIfWasVisible:!0})}},{key:"reset",value:function(){b(O(c.prototype),"reset",this).call(this),window.Ya.adfoxCode.destroy(this.containerId)}}])&&v(e.prototype,r),o&&v(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.n);P(k,"useCreativeOnPage",!1),P(k,"yaContextCbInit",!1),P(k,"adUnits",[]),P(k,"bidders",[]),P(k,"hideAdfoxHeaderBidding",!1),P(k,"hideAdfoxContext",!1),P(k,"offAdfoxHeaderBidding",!1);var j=r(714);function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function R(t,e){for(var r=0;r=t.length&&(e=!!this.setPreview&&0),nt.t.page(n,e),e}},{key:"onClickCloseBtn",value:function(){l.G.publish("switchOnExternalLaunch",this.vastBlockId),l.G.publish("toResetBlock",this.vastBlockId)}},{key:"followTopVastToTopOverlay",value:function(){var t=this;setInterval((function(){var e=document.getElementById("wrap_"+t.vastBlockId),r=document.getElementById("wrap_"+t.previousBlockId);e&&r?e.style.bottom=r.getBoundingClientRect().height-e.getBoundingClientRect().height+"px":e&&!r&&(e.style.bottom="0px")}),10)}}])&&it(e.prototype,r),n&&it(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function st(t){return st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},st(t)}function lt(t,e){for(var r=0;r0){var e=nt.t[this.storageType](this.showPageName);if(void 0===e)return nt.t[this.storageType](this.showPageName,this.countPageView-1),!1;if(e>0)return nt.t[this.storageType](this.showPageName,e-1),!1}return!0}},{key:"checkNextShow",value:function(){if(!isNaN(this.countPageViewOrder)){var t="order_"+this.showPageName,e=nt.t[this.storageType](t);if(void 0===e)nt.t[this.storageType](t,this.countPageViewOrder);else{if(e>0)return nt.t[this.storageType](t,e-1),!1;nt.t[this.storageType](t,this.countPageViewOrder)}}return!0}},{key:"checkTimeBetweenShow",value:function(){if(!isNaN(this.timePageView)){var t="time_"+this.showPageName,e=nt.t[this.storageType](t),r=Math.trunc(Date.now()/1e3);if(e){if(!(r-e>=this.timePageView))return!1;nt.t[this.storageType](t,r)}else nt.t[this.storageType](t,r)}return!0}}])&&Ot(e.prototype,r),n&&Ot(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function jt(t){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(t)}function Tt(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],e=["adfinity-wrap","adfinity-".concat(this.formatType)].concat(t);return this.params.mediaFormatType&&e.push("adfinity-media-format-type-".concat(this.params.mediaFormatType)),e=e.join(" "),'id="'.concat(this.getWrapId(),'" class="').concat(e,'"')}},{key:"htmlWrapper",value:function(){return"
')}},{key:"finishWrapping",value:function(t){var e,r=this;this.creativeData=t,this.showHeader(),this.params.width&&(this.wrapper.style.maxWidth=this.params.width+"px");var n=this.wrapper.querySelector(".adfinity-close");n&&(n.onclick=function(){return r.close()});var o=parseInt(this.params.height),i=null!==(e=this.params.unitsMeasurement)&&void 0!==e?e:"px";isNaN(o)||(this.container.style.maxHeight=o+i)}},{key:"showHeader",value:function(){var t,e=null!==(t=null==this?void 0:this.htmlHeader())&&void 0!==t?t:"";e&&!this.wrapper.querySelector(".adfinity-header")&&this.wrapper.insertAdjacentHTML("afterbegin",e)}},{key:"htmlHeader",value:function(){return""}},{key:"close",value:function(){l.G.publish("clickCloseBtn",this.blockId),l.G.publish("toResetBlock",this.blockId),this.reloadAfterClose()}},{key:"reset",value:function(){Bt(Dt(a.prototype),"reset",this).call(this),this.isRun=!1,this.removeWrapper()}},{key:"removeWrapper",value:function(){this.wrapper&&this.wrapper.remove(),this.wrapper=!1,delete this.isWrap}},{key:"reloadAfterStart",value:function(){var t=this,e=parseInt(this.params.overloadAfterLoad);isNaN(e)||p.u.setInterval(this,"reloadCreative",(function(){t.isRun&&(n.T.log("Попытка перезагрузки креатива",t.blockId),l.G.publish("creativeReload",t.blockId))}),1e3*e);var r=parseInt(this.params.refreshAfterLoad);isNaN(r)||(this.launchPermissions.allowRefreshAfterLoad=!1,p.u.setInterval(this,"reloadAfterStart",(function(){n.T.log("Перезагрузка всего блока",t.blockId),l.G.publish("toResetBlock",t.blockId),t.launchPermissions.allowRefreshAfterLoad=!0}),1e3*r))}},{key:"reloadAfterClose",value:function(){var t=this;this.launchPermissions.allowedAfterClose=!1;var e=parseInt(this.params.refreshAfterClose);isNaN(e)||(this.launchPermissions.allowRefreshAfterClose=!1,this.launchPermissions.allowedAfterClose=!0,p.u.setTimeout(this,"reloadAfterClose",(function(){t.isRun||(t.launchPermissions.allowRefreshAfterClose=!0)}),1e3*e))}},{key:"switchOnPlaceholder",value:function(){this.whetherShowPlaceholder()&&this.container.classList.add("adfox_placeholder")}},{key:"whetherShowPlaceholder",value:function(){return!0}},{key:"switchOffPlaceholder",value:function(){this.container.classList.remove("adfox_placeholder"),this.container.style.height=null}}],r&&xt(e.prototype,r),o&&xt(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(Ct);function Ft(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Gt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gt(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:0;return"object"===Ht(this.params.objectToInsert)?!1===t?[this.params.objectToInsert]:this.params.objectToInsert:"xPath"===this.params.typeEmbedding?f.M.getObjectByXPath(this.params.cssPath,t):f.M.getObjectByPath(this.params.cssPath,t)}},{key:"getInsertPosition",value:function(){return this.params.cssPosition}},{key:"cycleInsert",value:function(){var t=this;this.listAditionalBlocks=new Set,this.chainInfinityScroll=[this],p.u.setInterval(this,"infinityScrollClone",(function(){if(t.isRun){var e,r=window.adfinity.block(t.blockId),n=Ft(t.getObjectToInsert(!1));try{for(n.s();!(e=n.n()).done;){var o=e.value;if(0===t.listAditionalBlocks.size&&t.listAditionalBlocks.add(o),!t.listAditionalBlocks.has(o)){t.listAditionalBlocks.add(o);var i=s(r.props);i.blockId=t.blockId+"-"+(t.listAditionalBlocks.size+1),i.creativeParms.containerId+="-"+(t.listAditionalBlocks.size+1),delete i.formatParams.cssPath,delete i.formatParams.infinityScroll,i.formatParams.objectToInsert=o;var a=window.adfinity.loadBlock(i);a&&(t.chainInfinityScroll.push(a.format),a.format.chainInfinityScroll=t.chainInfinityScroll)}}}catch(t){n.e(t)}finally{n.f()}}}),200)}}],r&&Ut(e.prototype,r),n&&Ut(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(qt);function Qt(t){return Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(t)}function Zt(t,e){for(var r=0;r")+'
':ce(fe(i.prototype),"htmlWrapper",this).call(this)}},{key:"initStopScroll",value:function(){this.shellProgressbar=this.wrapper.querySelector(".adfinity-shell-progressbar"),this.progressbar=this.wrapper.querySelector(".adfinity-stopScroll-progressbar"),this.getTopDelta()<0&&this.setStatus(3),this.initEvents(),this.initStyles()}},{key:"initEvents",value:function(){var t=this;p.u.addEventListener(this,"touchstart",window,"touchstart",(function(e){t.lastCoordScrollY=e.touches[0].clientY,t.wasTouch=!0})),p.u.addEventListener(this,"touchmove",window,"touchmove",(function(e){!1!==t.lastCoordScrollY?(t.deltaTouchMove=e.touches[0].clientY-t.lastCoordScrollY,t.lastCoordScrollY=e.touches[0].clientY,t.statusProcessing()):t.lastCoordScrollY=e.touches[0].clientY})),p.u.addEventListener(this,"touchend",window,"touchend",(function(){return t.lastCoordScrollY=!1})),p.u.addEventListener(this,"touchcancel",window,"touchcancel",(function(){return t.lastCoordScrollY=!1})),p.u.addEventListener(this,"scroll",window,"scroll",(function(){return t.onScrollWindow()})),p.u.setInterval(this,"updateHeigthProgressBar",(function(){return t.renderProgressBar()}),50)}},{key:"initStyles",value:function(){var t=[],e=[];this.params.stopScrollPBbgcolor&&e.push("background-color:".concat(this.params.stopScrollPBbgcolor)),this.params.stopScrollPBwidth&&e.push("width:".concat(this.params.stopScrollPBwidth,"px")),e.length>0&&t.push("#".concat(this.getWrapId()," .adfinity-shell-progressbar{").concat(e.join(";"),"}")),this.params.stopScrollPBcolor&&t.push("#".concat(this.getWrapId()," .adfinity-stopScroll-progressbar{background-color:").concat(this.params.stopScrollPBcolor,"}")),t.length>0&&f.M.addStyle("stopScroll"+this.blockId,t.join(""))}},{key:"statusProcessing",value:function(){var t=this.getTopDelta(),e=1;switch(this.stopScrollStatus){case 1:t<=0&&(e=2);break;case 2:this.processProgress(),e=0===this.scrollProgress?1:1===this.scrollProgress?3:2;break;case 3:e=t>0?2:3}e!==this.stopScrollStatus&&this.setStatus(e),2==e&&this.scrollToTop()}},{key:"getTopDelta",value:function(){return Math.round(this.wrapper.getBoundingClientRect().top)}},{key:"setStatus",value:function(t){this.wrapper.dataset.stopScrollStatus=t,this.stopScrollStatus=t,2==t?(document.body.classList.add("adfinity-stopScrollBody"),this.scrollToTop()):document.body.classList.remove("adfinity-stopScrollBody"),1===t?this.scrollProgress=0:3===t&&(this.scrollProgress=1),this.processProgress()}},{key:"processProgress",value:function(){this.scrollProgress=this.scrollProgress-this.deltaTouchMove/(window.innerHeight*this.params.stopScrollHeight/100),this.scrollProgress>1&&(this.scrollProgress=1),this.scrollProgress<0&&(this.scrollProgress=0),this.renderProgressBar()}},{key:"renderProgressBar",value:function(){this.progressbar.style.height=this.scrollProgress*this.container.offsetHeight+"px",this.shellProgressbar.style.height=this.wrapper.offsetHeight+"px"}},{key:"scrollToTop",value:function(){var t=this.getTopDelta();0!=t&&window.scrollTo(0,t+window.scrollY)}},{key:"onScrollWindow",value:function(){if(this.wasTouch&&!1===this.lastCoordScrollY){var t=this.getTopDelta();(3===this.stopScrollStatus&&t>0||1===this.stopScrollStatus&&t<0)&&this.setStatus(2)}}}])&&ae(e.prototype,r),n&&ae(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Jt);function he(t){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(t)}function ve(t,e){for(var r=0;r")+'
')+""}},{key:"elStickyTop",value:function(t){var e=this,r=this.wrapper.firstChild,n=parseInt(this.params.topStickToTop);n=n||0;var o=!1;t.style.position="static",t.style.background="#F5FCFF00",r.style.position="static",p.u.setInterval(this,"placeholderHeight",(function(){t.style.height=t.querySelector(".adfinity-body").clientHeight+"px",o=c(t).top}),50),p.u.addEventListener(this,"changeStateSidebar",document,"scroll",(function(){var t=e.getStateBlock(n);if("stateFirst"===t&&(r.style.position="static",r.style.top="0px"),"stateSecond"===t&&(r.style.width=r.clientWidth+"px",r.style.position="fixed",r.style.zIndex=1e3,r.style.top=n+"px"),"stateThird"===t){r.style.position="relative";var i=!1,a=e.getBlockNext();a?i=c(a.wrapper).top-o-r.clientHeight-n:e.params.stopStick&&null!==document.querySelector(e.params.stopStick)&&(i=c(document.querySelector(e.params.stopStick)).top-n-o-r.clientHeight),r.style.top=i+"px"}}))}},{key:"getStateBlock",value:function(t){if(u(this.wrapper).top>0)return"stateFirst";var e=this.getBlockNext(),r=this.wrapper.clientHeight;return e||this.params.stopStick?!e&&this.params.stopStick?null!==document.querySelector(this.params.stopStick)&&c(document.querySelector(this.params.stopStick)).top-t-window.scrollY<=r?"stateThird":"stateSecond":e?u(e.wrapper).top-2*t>r?"stateSecond":"stateThird":void 0:"stateSecond"}},{key:"getBlockNext",value:function(){if(this.blockNext)return this.blockNext;if(!this.chainInfinityScroll)return this.blockNext=!1,this.blockNext;var t=this.chainInfinityScroll.length;for(var e in this.chainInfinityScroll)if(this.chainInfinityScroll[e].blockId===this.blockId&&e<=t-2)return this.blockNext=this.chainInfinityScroll[Number(e)+1],this.blockNext}}])&&ve(e.prototype,r),n&&ve(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Jt);function ke(t){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ke(t)}function je(t,e){for(var r=0;r=l&&(n.launchPermissions.allowWhenPageEvent=!0)}))),n}return e=i,(r=[{key:"canRun",value:function(){if("interactive"===document.readyState||"complete"===document.readyState)return Te(Ee(i.prototype),"canRun",this).call(this)}},{key:"getInsertPosition",value:function(){var t="afterbegin";return void 0!==this.params.positionInBody&&(t="beforeEnd"),t}},{key:"showHeader",value:function(){var t;Te(Ee(i.prototype),"showHeader",this).call(this),!1!==this.params.blur&&(null===(t=this.turnOnBlur)||void 0===t||t.call(this)),this.createTimer(this.params.canCloseAfter)}},{key:"turnOnBlur",value:function(){var t=this.wrapper.querySelector(".adfinity-body");t&&(t.style.backdropFilter="blur("+this.params.blur+"px)",CSS.supports("-webkit-backdrop-filter","blur("+this.params.blur+"px)")&&(t.style.webkitBackdropFilter="blur("+this.params.blur+"px)"))}},{key:"createTimer",value:function(t){var e=this,r=this.wrapper;if(this.timeToClose=parseInt(t),!isNaN(this.timeToClose)){r.classList.add("adfinity-show-to-close");var n=r.querySelector(".adfinity-to-close-num");n&&(n.innerText=this.timeToClose.toString()),p.u.setInterval(this,"timerId",(function(){--e.timeToClose<0?(p.u.stopScheduler(e,"timerId"),r.classList.remove("adfinity-show-to-close"),e.params.autoClose&&e.close()):n&&(n.innerText=e.timeToClose.toString())}),1e3)}}}])&&je(e.prototype,r),n&&je(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(qt);function Ae(t){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(t)}function Le(t,e){for(var r=0;r
До закрытия блока
'):""}},{key:"createWrapper",value:function(){var t=Ne(We(i.prototype),"createWrapper",this).call(this);return!!t&&(this.showHead()||this.wrapper.querySelector(".adfinity-body").classList.add("adfinity-body-no-shadow"),t)}},{key:"createTimer",value:function(t){var e=this;if(Ne(We(i.prototype),"createTimer",this).call(this,t),!isNaN(this.timeToClose)&&this.showHead()){var r=this.wrapper.querySelector(".adfinity-progress-line");if(r){var n=10/this.timeToClose;p.u.setInterval(this,"timerLine",(function(){r.style.width=Number(r.style.width.replace("%",""))+n+"%",e.timeToClose<0&&(p.u.stopScheduler(e,"timerLine"),r.style.width="100%")}),100)}}}},{key:"showHead",value:function(){var t;return this.params.wrapForever||!(null===(t=this.creativeData)||void 0===t||!t.mustShowWrap)}},{key:"reset",value:function(){var t,e;null===(t=this.wrapper)||void 0===t||null===(e=t.classList)||void 0===e||e.remove("adfinity-z-index"),document.querySelector("body").classList.remove("adfinity-overflow-hidden"),Ne(We(i.prototype),"reset",this).call(this)}}])&&Le(e.prototype,r),n&&Le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Be);function Fe(t){return Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fe(t)}function Ge(t,e){for(var r=0;r')+'
'}},{key:"finishWrapping",value:function(){He($e(i.prototype),"finishWrapping",this).call(this),this.renderSubstrate()}},{key:"renderSubstrate",value:function(){if(!this.params.hideBottomSubstrate){var t=this.wrapper.querySelector(".adfinity-body");this.substrateNode||(document.body.insertAdjacentHTML("beforeend",'
'),this.substrateNode=document.getElementById("adfinity-overlay-substrate")),this.substrateNode.style.height=getComputedStyle(t).height}}},{key:"reset",value:function(){this.substrateNode&&this.substrateNode.remove(),He($e(i.prototype),"reset",this).call(this)}}])&&Ge(e.prototype,r),n&&Ge(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Be);function Xe(t){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xe(t)}function Je(t,e){for(var r=0;r=window.innerWidth;return r&&n}}])&&sr(e.prototype,r),n&&sr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ir(t,e)}(i,t);var e,r,n,o=ar(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return e=i,(r=[{key:"run",value:function(){if(!or(cr(i.prototype),"run",this).call(this))return!1;l.G.publish("creativeToRun",this.blockId,{container:this.container})}}])&&nr(e.prototype,r),n&&nr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Ct));function hr(t){return hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(t)}function vr(t,e){for(var r=0;rthis.params.widthDevice}},{key:"createWrapper",value:function(){var t=br(_r(i.prototype),"createWrapper",this).call(this);return t&&setTimeout((function(){return t.classList.remove("adfinity-trap-hidden")}),0),t}},{key:"htmlWrapper",value:function(){var t,e=this.params.switchOnInternalLinkBlock?this.renderInternalLink():"",r=this.params.switchOnAdvertBlock?'
':"";return t="internalLink"===this.params.whichBlockFirst?e+r:r+e,"
').concat(t,"
")}},{key:"renderInternalLink",value:function(){var t=this.params.internalLinkList,e=Math.floor(Math.random()*t.url.length),r=this.params.position,n=["full"===r?"":".adfinity-trap-hidden{".concat(r,":-").concat(this.params.width-5,"px!important}"),".adfinity-trap-content{background-color:".concat(this.params.colorBackground,"}"),".adfinity-trap-title{color:".concat(this.params.colorTitle,"}"),".adfinity-trap-description{color:".concat(this.params.colorDecription,"}"),".adfinity-trap-button{color:".concat(this.params.colorBtnTxt,";background-color:").concat(this.params.colorBtn,"}"),".adfinity-trap-img{background-image:url('".concat(t.image[e],"')!important}")];f.M.addStyle("trap",n.join(""));var o='
'.concat(t.title[e],"
"),i='
'.concat(t.description[e],"
"),a='
'.concat(o).concat(i).concat('
Читать статью
',"
");return'').concat(a).concat('
',"
")}}])&&vr(e.prototype,r),n&&vr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Ke),topSticky:oe,rv:er,nowrap:yr},create:function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"function"==typeof this.formats[e]?r=new this.formats[e](t,e,n):(r=null,console.error("Нет формата "+e)),r}};function Pr(t){return Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(t)}function Sr(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return kr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kr(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function kr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0){r=!1;var o,i=Sr(e);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=new RegExp(a);if(n.match(c)){r=!0;break}}}catch(t){i.e(t)}finally{i.f()}}if(!0===r&&Array.isArray(t)&&t.length>0){var u,s=Sr(t);try{for(s.s();!(u=s.n()).done;){var l=u.value,f=new RegExp(l);if(n.match(f)){r=!1;break}}}catch(t){s.e(t)}finally{s.f()}}return r}},{key:"validParams",value:function(t){var e=!1;return t.blockId?t.formatType?t.formatParams||(e="Не заданы параметры формата"):e="Не задан формат":e="Не задан blockId",t.creativeType||(e="Не задан креатив"),t.creativeParms||(e="Не заданы параметры креатива"),!1===e||(n.T.err(e,this),!1)}},{key:"addToPage",value:function(){var t,e,r,n,o,i,a=null!==(t=null===(e=(r=this.format).addToPage)||void 0===e?void 0:e.call(r))&&void 0!==t?t:{},c=null!==(n=null===(o=(i=this.creative).addToPage)||void 0===o?void 0:o.call(i))&&void 0!==n?n:{},u={};for(var s in a)u[s]=a[s];for(var l in c)u[l]=c[l];return u}},{key:"tryRun",value:function(){var t,e,r,o;return this.run?"alreadyRun":!!(this.canShowOnPage&&null!==(t=(e=this.format).canRun)&&void 0!==t&&t.call(e)&&null!==(r=(o=this.creative).canRun)&&void 0!==r&&r.call(o))&&(this.format.run(),this.run=!0,n.T.log("Запуск блока",this),this.initStyles(this.props.styles),!0)}},{key:"initStyles",value:function(t){t&&f.M.addStyle("block_"+this.blockId,t)}},{key:"reset",value:function(){p.u.stopAllSchedulers(this),p.u.removeAllEventListeners(this),this.creative.reset(),this.format.reset(),this.run=!1,n.T.log("Блок выгружен",this.blockId)}}])&&jr(e.prototype,r),o&&jr(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Cr(t){return Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(t)}function Er(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return xr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xr(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function xr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r{__webpack_require__.d(__webpack_exports__,{f:()=>CreativeExperiment});var _base_BaseCreative__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(906),_utils_page__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(307),_utils_logs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(705),_utils_resources__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(958);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r{r.d(e,{n:()=>s});var n=r(473),o=r(958);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){for(var r=0;r{r.d(e,{G:()=>a});var n=r(705);function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r3&&void 0!==arguments[3]&&arguments[3];"function"==typeof r?(void 0===this.channels[t]&&(this.channels[t]={}),void 0===this.channels[t][e]&&(this.channels[t][e]=[]),o?this.channels[t][e].unshift(r):this.channels[t][e].push(r)):n.T.err("При подписке на событие ".concat([t]).concat([e]," передана не функция"),e)},publish:function(t,e){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(null===(r=this.channels[t])||void 0===r?void 0:r[e])){var a,c=o(this.channels[t][e]);try{for(c.s();!(a=c.n()).done;){var u=a.value;try{u(i)}catch(t){n.T.err(t,e)}}}catch(t){c.e(t)}finally{c.f()}}},unsubscribeBlock:function(t){for(var e in this.channels)this.unsubscribe(e,t)},unsubscribe:function(t,e){var r;null!==(r=this.channels[t])&&void 0!==r&&r[e]&&(delete this.channels[t][e],0===this.channels[t].lengths&&delete this.channels[t])}}},705:(t,e,r)=>{r.d(e,{T:()=>a});var n=r(575),o=r(307);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var a={logs:{},showLog:function(t){var e,r,o=null!==(e=n.t.session("showLog"))&&void 0!==e&&e,i=null!==(r=n.t.session("showLogBlock"))&&void 0!==r&&r;return!!o&&(!i||i===t)},on:function(t){return n.t.session("showLog",!0),t&&n.t.session("showLogBlock",t),"Логи включены"},off:function(){return n.t.session("showLog",!1),n.t.session("showLogBlock",!1,0),"Логи выключены"},log:function(t,e){this._def("log",t,e)},err:function(t,e){this._def("error",t,e)},info:function(t,e){this._def("info",t,e)},_def:function(t,e,r){if(void 0!==r){!1!==r&&"object"!=i(r)&&(r=window.adfinity.block(r));var n=r.blockId;this.showLog(n)&&(console[t](this.format(r),e),this.timingAdd(e,n))}else console.error("Не задан блок",t,e)},format:function(t){var e="ADFINITY: ";return null!=t&&t.blockCaption&&(e+=null==t?void 0:t.blockCaption),e},timing:performance.getEntriesByType("navigation")[0],timingSwitch:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n.t.session("showLogTiming",!!t),"Тайминг "+(t?"включен":"выключен")},timingAdd:function(t,e){void 0===this[e]&&(this[e]=[]);var r=0,i=0,a=o.M.tmFromStart(),c=this[e].length;c>0?(r=this[e][0].tmFromStart,i=this[e][c-1].tmFromStart):r=i=a,this[e].push({tmFromStart:a,tmFromFirts:a-r,tmFromLast:a-i,msg:e+": "+t}),n.t.session("showLogTiming")&&console.table(this[e])}}},307:(t,e,r)=>{r.d(e,{M:()=>o});var n=r(705),o={tmStart:!1,styles:{},stylesTag:!1,currentPage:!1,init:function(){this.setTmStart(),this.setCurrentPage()},setTmStart:function(){this.tmStart=this.now()},now:function(){return new Date/1e3},tmFromStart:function(){return this.now()-this.tmStart},setCurrentPage:function(){this.currentPage=this.getPagePath()},hasChangedCurrentPage:function(){return this.currentPage!==this.getPagePath()},getPagePath:function(){return window.location.pathname+window.location.search},addTag:function(t,e,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"afterend",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=document.createElement(t);for(var c in e)a.setAttribute(c,e[c]);return i&&(a.innerHTML=i),(r=null!==(n=r)&&void 0!==n?n:this.adfinityScriptNode()).insertAdjacentElement(o,a),a},adfinityScriptNode:function(){return document.querySelector('script[src*="adfinity."]')},addStyle:function(t,e){this.styles[t]=e,this.renderStyles()},removeStyle:function(t){void 0!==this.styles[t]&&delete this.styles[t],this.renderStyles()},renderStyles:function(){!1===this.stylesTag&&(this.stylesTag=this.addTag("style",{id:"adfox_styles"}));var t=[];for(var e in this.styles)t.push(this.styles[e]);this.stylesTag.innerHTML=t.join("\n")},checkDomain:function(t){var e="www.",r=window.location.host;if(t.main.replace(e,"")===r.replace(e,""))return!0;for(var o in t.mirror){var i=new RegExp(t.mirror[o]);if(r.match(i))return!0}return n.T.err("Домена нет среди разрешённых",!1),!1},checkUrlForShow:function(t){for(var e=null!=t?t:[],r=window.location.pathname,o=0;o1&&void 0!==arguments[1]?arguments[1]:0,r=t.replace(/:nth-child/g,""),o=1,i=0,a=!1,c=!0,u=r.match(/(.*)\(((\d*)n\+(\d+)|(\d*)n|(\d+))\)(\d*)$/);if(u&&(void 0!==u[6]?(o=0,i=parseInt(u[6]),a=1):void 0!==u[5]?(o=u[5],i=0):void 0!==u[3]&&void 0!==u[4]?(o=u[3],i=parseInt(u[4])):(n.T.err("Неверное регулярное выражение - "+t),c=!1),o=""==o?1:parseInt(o),r=u[1].replace(/\(/g,":nth-child("),u[7].length>0&&(a=parseInt(u[7]),a=!isNaN(a)&&a)),!1===c)return!1;var s=document.querySelectorAll(r),l=[];return s.forEach((function(t,e){e++;for(var r=0;;){var n=o*r+i;if(n===e){l.push(t);break}if(0===o||n>e)break;r++}})),!1!==a&&(l=l.slice(0,a)),!1===e?l:l[e]},getObjectByXPath:function(t,e){var r,o=[],i=!0;if(null===t.match(/\//)&&(n.T.err("Неверное регулярное выражение - "+t),i=!1),!1===i)return!1;for(var a=0;null!==r;)r=document.evaluate(t,document.body,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(a),a++,o.push(r);return o.pop(),!1===e?o:o[e]}}},958:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{u:()=>o});var o={runScheduler:function(t,e,r,o,i){if("object"!==n(e)||"function"!=typeof o)return!1;for(var a=!1,c=arguments.length,u=new Array(c>5?c-5:0),s=5;s5&&void 0!==arguments[5]&&arguments[5];return"object"===n(t)&&"object"===n(r)&&"function"==typeof i&&(!1===n(a)?r.addEventListener(o,i):r.addEventListener(o,i,a),"object"!==n(t.eventListeners)&&(t.eventListeners={}),t.eventListeners[e]={eventObject:r,eventType:o,listener:i,options:a},!0)},removeEventListener:function(t,e){var r,o=null==t||null===(r=t.eventListeners)||void 0===r?void 0:r[e];return"object"===n(o)&&(!1===n(o.options)?o.eventObject.removeEventListener(o.eventType,o.listener):o.eventObject.removeEventListener(o.eventType,o.listener,o.options),!0)},removeAllEventListeners:function(t){var e=null==t?void 0:t.eventListeners;if("object"!==n(e))return!1;for(var r in e)this.removeEventListener(t,r);return!0}}},575:(t,e,r)=>{r.d(e,{t:()=>n});var n={pageStorage:{},page:function(t,e,r){return this.default(this.pageStorage,t,e,r)},session:function(t,e,r){return this.default(sessionStorage,t,e,r)},local:function(t,e,r){return this.default(localStorage,t,e,r)},default:function(t,e,r,n){var o,i=Date.now();if(void 0!==r&&(o={val:r},n=parseInt(n),isNaN(n)||(o.time=i+1e3*n),t[e]=JSON.stringify(o)),void 0!==t[e]){if(!(void 0!==(o=JSON.parse(t[e])).time&&o.time{}},__webpack_module_cache__={},deferred;function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=(t,e,r,n)=>{if(!e){var o=1/0;for(u=0;u=n)&&Object.keys(__webpack_require__.O).every((t=>__webpack_require__.O[t](e[a])))?e.splice(a--,1):(i=!1,n0&&deferred[u-1][2]>n;u--)deferred[u]=deferred[u-1];deferred[u]=[e,r,n]},__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={626:0,156:0};__webpack_require__.O.j=e=>0===t[e];var e=(e,r)=>{var n,o,[i,a,c]=r,u=0;if(i.some((e=>0!==t[e]))){for(n in a)__webpack_require__.o(a,n)&&(__webpack_require__.m[n]=a[n]);if(c)var s=c(__webpack_require__)}for(e&&e(r);u__webpack_require__(139)));var __webpack_exports__=__webpack_require__.O(void 0,[156],(()=>__webpack_require__(847)));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})(); /* Published at: 2024-02-16 15:13:53 */;